home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13143 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  36 lines

  1. Path: sun001.spd.dsccc.com!jmccarty
  2. From: jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for semaphore example.
  5. Date: 4 Apr 1996 22:35:15 GMT
  6. Organization: DSC Communications Corporation
  7. Message-ID: <4k1ir3$i4s@sun001.spd.dsccc.com>
  8. References: <4jc5hd$1vlv@ilx018.iil.intel.com> <828366149snz@genesis.demon.co.uk> <4jq01e$9kq@solutions.solon.com> <4jro8kINN85c@anvil.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: sun1307.spd.dsccc.com
  10.  
  11. In article <4jro8kINN85c@anvil.ugrad.cs.ubc.ca>,
  12. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  13. )In article <4jq01e$9kq@solutions.solon.com>,
  14. )Peter Seebach <seebs@solutions.solon.com> wrote:
  15. )>In article <828366149snz@genesis.demon.co.uk>,
  16. )>Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  17. )>>>Unless you wanted to implement software-level coprocesses or the like,
  18. )>>>which you could do.
  19. )>
  20. )>>Strictly conforming?
  21. )>
  22. )>Sure.  You could write strictly conforming C which parses and translates
  23. )>one or more programs in an arbitrary language, and gives them various
  24. )>"calls" they can make, which could include semaphores.
  25.  
  26. Such a program might be compliant, but it would not be portable. The
  27. main reason for compliance is to achieve portability. If one is a priori
  28. willing to give up portability, then why worry about compliance?
  29.  
  30. Mike
  31. -- 
  32. ----
  33. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  34.  
  35. I don't speak for DSC.         <- They make me say that.
  36.